{% extends 'base.html' %}

{% block title %}
<title>{{name|default:"Cihon"}} &amp; Weekly</title>
{% endblock title %}

{% block head %}
<h1 ><a href="{{post.get_author_url}}"><b>{{name|default:"Cihon"}}</b> &amp; Weekly</a></h1> 
{% endblock head %}

{% block main %}
    {% for post in post_list%}
                <article class="post post-{{post.pk}}">
                    <header class="entry-header">
                        <h1 class="entry-title">
                        	<span class="post-author"><a href="{{post.get_author_url}}">{{post.author}}</a></span>
                            <span class="post-author"><a href={{post.get_absolute_url}}>{{post.title}}</a></span>
                            <a href="{% url 'blog:category' post.category.pk %}">{{post.category.name}}</a>
                        </h1>
                        <div class="entry-meta">
                            
                            
                            <!--
                            <span class="comments-link"><a href="#">{{ post.comment_set.all|length}}评论</a></span>
                            <span class="views-count"><a href="#">{{post.views}}阅读</a></span>
                        	-->
                        </div>
                    </header>
                    <div class="entry-content clearfix">
                        <p>{{post.abstact}}</p>
                        <div class="read-more cl-effect-14">
                            <a href="{{post.get_absolute_url}}" class="more-link">继续阅读 <span class="meta-nav">→</span></a>
                        </div>
                    </div>
                </article>
                {% empty %}
                    <div class="no-post">暂时没有周报，问题不大！</div>
                {% endfor %}
                
                <!-- 简单分页效果
                <div class="pagination-simple">
                    <a href="#">上一页</a>
                    <span class="current">第 6 页 / 共 11 页</span>
                    <a href="#">下一页</a>
                </div>
                -->
                <div class="pagination">
                   
                </div>
{% endblock main %}
{% block toc %}

{% endblock toc %}


